package com.pacy.pacybaseproject.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.BusStationBean;

/**
 * @author PACY
 * @date 2024/1/3
 * description:多余的
 */
public class BusStationChaildAdapter extends BaseQuickAdapter<BusStationBean.StationDTO, BaseViewHolder> {
    public BusStationChaildAdapter() {
        super(R.layout.travel_station_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, BusStationBean.StationDTO s) {
            holder.setText(R.id.name_tv,s.getBusName())
                    .setGone(R.id.time_lin,false)
                    .setText(R.id.time_tv,s.getTime()+" · "+s.getStationNum())
                    .setGone(R.id.timeFalse_tv,true)
                    .setText(R.id.station_tv,s.getEndStation())
                    .setGone(R.id.startTime_tv,true);
    }
}
